package common;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by shuangjun.yang on 2016/11/3.
 */
public class DataUtils {
    private static final String yyyyMMdd = "yyyy-MM-dd";


    public static String formatDate(Date date){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(yyyyMMdd);
        return simpleDateFormat.format(date);
    }
}
